﻿

@{
    ViewBag.Title = "Customer";

}

<link href="~/Scripts/weibo/styles/CustomerIndex.css" rel="stylesheet" />
<link href="~/Scripts/weibo/styles/global.css" rel="stylesheet" />
<script src="~/Scripts/weibo/script/CustomerIndex.js"></script>
<script src="~/Scripts/weibo/script/trim.js"></script>
<script src="~/Scripts/weibo/script/jquery-1.6.2.min.js"></script>
<script src="~/kindeditor/kindeditor-all.js"></script>
<script type="text/javascript">
    KindEditor.ready(function (K) {
        var options = {
            uploadJson: '/kindeditor/upload_json.ashx',
            fileManagerJson: '/kindeditor/file_manager_json.ashx',
            allowFileManager: true,

        };
        window.editor = K.create('#textfield2', options);
    });
    function btnclick() {
        editor.sync();
        txtObj = document.getElementById('textfield2');        
        txtObj.value = trim(txtObj.value);
        var u = changetxt(txtObj.value);
        $.ajax({
            url: "/Default/Add",
            data: { "con": u },
            success: function (result) {
                if (result == "true") {
                    window.location.href = "/Default/Customer"
                }
            }

        })
        if (txtObj.value.length > 0) {
            var str = changetxt(txtObj.value);//替换文本框中的表情
            var time = inittime();//取出当前时间
            //需要放入数据库的内容
            var innerht = "<div class='stateShow' onmouseover='stateMouseOver(this)' onmouseout='stateMouseOut(this)'><div class='stateShowWord'><table width='450' border='0' cellpadding='0' cellspacing='0' class='stateTable'><tr><td width='70' align='center' valign='top'><a href='#'><img src='Images/MainRightFirstLineTitle.gif' alt='' width='48' height='48' /></a></td><td width='380'><a href='#'>DarkDemon</a><img src='Images/1.gif' align='absmiddle' style='border:none;' />&nbsp;" + str + "</td></tr></table></div><div class='stateImgShow'></div><div class='stateShowtime'>" + time + "</div><div class='stateOp'><a onclick='reXianShi(this)' class='opState'>回复</a><a class='opState'>转发</a><a onclick='delState(this)' class='opState'>删除</a></div><div class='huifu'></div></div>";
            
            

            var divObj = document.getElementById("mainBannerContent");
            
           
            divObj.innerHTML = innerht + divObj.innerHTML;
            
        }
       
        txtObj.value = "";//清空文本框
        changeDivHeight();//重设页面高度
    }
</script>
<body style="filter:alpha(opacity=100)" id="totop">
    <!-- 总容器 container开 始-->
    <div>
        <div id="container">

            <!-- 内容总容器 mainDIV 开 始-->
            <div id="main">
                <!-- 左侧mainBannerDIV 开始 -->
                <div id="mainBanner">
                    <!-- mainBannerTop DIV 开始 -->
                    <div id="mainBannerTop">
                        <!--id=mainBannerTopIssue 发布框-->
                        <div id="mainBannerTopIssue">
                            <!--id=mainBannerTopIssuePoint 提示-->
                            <div id="mainBannerTopIssuePoint">
                                正在发生的事情
                            </div>
                            <div style="float:right;">
                                您还可以输入<font id="counter1">140</font>字！
                            </div>
                            <!--<form action="/Default/UpdateCon" method="post">-->
                            <div>
                                <div id="mainBannerTopIssueForm">
                                    <!--id="mainBannerTopIssueFrame-->
                                    <div id="mainBannerTopIssueFrame">
                                        <textarea id="textfield2" style="overflow:hidden;border:1px #0CF solid;" name="textDiv"></textarea>
                                    </div>
                                    <!--id="mainBannerTopIssueInsert 插入链接-->
                                    <div id="mainBannerTopIssueInsert">
                                        <!--4个小div-->
                                    </div>
                                    <!--确认发布-->
                                    <div id="mainBannerTopIssueSure" style="margin-top:40px;">
                                        <input type="submit" name="name" value="发布" id="btn1" onclick="btnclick()" />
                                    </div>
                                </div>
                            </div>

                        </div>


                    </div>

                    <!--id="mainBannerTitle 首页-->
                    <br />
                    <div id="mainBannerTitle">
                        <!--id="mainBannerTitleWord"-->
                        <div id="mainBannerTitleWord">
                            <b>首页</b>
                        </div>
                        <!--首页提示与隐藏-->
                        <div id="mainBannerTitleWord2">
                            <input type="checkbox" name="checkbox" id="checkbox" onclick="tdImgState()" />
                            隐藏图片
                        </div>
                    </div>
                    <!--不同人的内容-->
                    <div id="mainBannerContent">
                        <style>
                            img{
                                max-width:100%;
                            }
                        </style>
                        <!--个人展示-->
                        @foreach (var item in ViewBag.conlist)
                        {
                            <div class="stateShow" onmouseover="stateMouseOver(this)" onmouseout="stateMouseOut(this)" style="background-color: rgb(249, 249, 249);">
                                <div class="stateShowWord">
                                    <table width="450" border="0" cellpadding="0" cellspacing="0" class="stateTable">
                                        <tr>
                                            <td width="70" align="center" valign="top"><a href="#"><img src="~/Images/@item.UserInfo_Image" alt="" width="48" height="48" /></a></td>
                                            <td width="380"><a href="#">@item.U_Nick</a> &nbsp;&nbsp;  @Html.Raw(Server.HtmlDecode(@item.M_Content)) </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="stateImgShow"></div>
                                <div class="stateShowtime"> 07月01日 19:13</div>
                                <div class="stateOp" style="visibility: visible;">
                                    <a onclick="reXianShi(this)" class="opState">回复</a>
                                    <a class="opState">转发</a><a onclick="delState(this)" class="opState">删除</a>
                                </div><div class="huifu"></div>
                            </div>
                        }

                        <!--个人展示结束-->


                        <div id="recieve">
                            <div id="ff" style="float:left;"><font style="font-size:16px; color:#FDFDFD">&nbsp;&nbsp;&nbsp;&nbsp;回&nbsp;&nbsp;复</font></div>
                            <div id="left" style="float:right; margin-top:10px; color:#FFF; margin-right:10px;">您还有可以输入<font id="counter2" color="#ffffff">140</font>字！&nbsp;&nbsp;&nbsp;<img src="Images/hongcha1.gif" alt="" width="14" height="13" align="absmiddle" title="" onclick="windowClose()" /></div><br />
                            <div id="wt">
                                <form action="" method="get">
                                    <textarea name="ta" cols="" rows="" id="ta1" onkeyup="calNum(this,counter2,1)" style="overflow:hidden;border:1px #0CF solid;">
                            </textarea>
                                    <br />
                                    <div style="float:right; margin-right:25px; margin-top:7px; text-align:right;">
                                        <!--&nbsp;&nbsp;<input type="checkbox" name="引用原微博" value="复选框"/>&nbsp;&nbsp;引用原微博-->
                                        <input name="" type="button" value=" 回 复 " id="sub1" onclick="submitRstate()" />
                                    </div>
                                </form>
                            </div>
                            <!-- 回复DIV 结束 -->
                        </div>

                    </div>
                </div>
                <!-- 左侧mainBanner DIV 结束-->
                <!-- 右侧mainRight DIV开始 -->
                <div id="mainRight">
                    <table width="200" border="0" cellpadding="0" cellspacing="0" bgcolor="#E9F4FA">
                        <tr>
                            <td bgcolor="#E9F4FA">
                                <!-- 右侧mainRightPostionFirstLine DIV 开始 -->
                                <div id="mainRightPostionFirstLine">
                                    <!-- 右侧mainRightPostionFirstLineIcon DIV 开始 -->
                                    @foreach (var item2 in ViewBag.Info)
                                    {
                                        <div style="height:58px;">
                                            <div id="mainRightPostionFirstLineIcon">
                                                <a href="MyWB.html"><img src="~/Images/@item2.UserInfo_Image" alt="" width="48" height="48" align="absmiddle" title="" border="0" /></a>
                                            </div>
                                            <!-- 右侧mainRightPostionFirstLineIcon DIV 结束 -->
                                            <!-- 右侧mainRightPostionFirstLineWord1 DIV 开始 -->
                                            <div id="mainRightPostionFirstLineWord1">
                                                &nbsp;<font color="#005DC3"><b><a href="MyWB.html" class="a1">@item2.U_Nick</a></b></font><br />
                                            </div>
                                        </div>
                                    }
                                        <!-- 右侧mainRightPostionFirstLineWord1 DIV 结束 -->
                                        <!-- 右侧mainRightPostionFirstLineWord2 DIV 开始 -->
                                        <div id="mainRightPostionFirstLineWord2">
                                            <ul>
                                                <a href="MyWB.html" class="a1"><li><font class="style1">@ViewBag.Count_WeiBo</font><br /><font class="style2">微博</font></li></a>
                                                <a href="friend.html" class="a1"><li><font class="style1">@ViewBag.Count_Follow</font><br /><font class="style2">关注</font></li></a>
                                                <a href="focusonyou.html" class="a1"><li><font class="style1">@ViewBag.Count_Fans</font><br /><font class="style2">粉丝</font></li></a>
                                            </ul>
                                        </div>
                                        <!-- 右侧mainRightPostionFirstLineWord2 DIV 结束 -->
                                    </div>
                                <!-- 右侧mainRightPostionFirstLine DIV 结束 -->
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#E9F4FA">
                                <!-- 右侧mainRightPostionSecondLine DIV 开始 -->
                                <div id="mainRightPostionSecondLine">
                                    <!-- 右侧mainRightPositionSecondLineContent DIV 开始 -->
                                    <div id="mainRightPositionSecondLineContent">
                                        <a href="#" class="a1"><font style="font-size:16px;font-weight:700; color:#000;">首页</font></a><br />
                                        <hr color="#79BDD1" zize="2" style="" />
                                        <a href="#" class="a1"><font class="style3">我的</font></a>
                                        <hr class="h1">
                                        <a href="#" class="a1"><font class="style3">我的私信</font></a>
                                        <hr class="h1">
                                        <a href="#" class="a1"><font class="style3">转发</font></a>
                                        <hr class="h1">
                                        <a href="#" class="a1"><font class="style3">我的收藏</font></a>
                                    </div>
                                    <!-- 右侧mainRightPositionSecondLineContent DIV 开始 -->
                                </div>
                                <!-- 右侧mainRightPostionSecondLine DIV 结束 -->
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <!-- 右侧mainRightPostionThirdLine DIV 开始 -->
                                <div id="mainRightPostionThirdLine">
                                    <!-- 右侧mainRightPositionThirdLineContent DIV 开始 -->
                                    <div id="mainRightPositionThirdLineContent">
                                        <p>
                                            <a href="#" onclick="" class="a1">
                                                <font class="style4">你可能感兴趣的人</font>
                                                <img src="~/Images/ThirdLineUpArrow.gif" alt="" width="12" height="14" align="right" title="" border="0" />
                                            </a>
                                        </p>
                                        <br />
                                        <div id="d32" style="float:right"><a href="#" class="a1">查看更多</a></div>
                                    </div>
                                    <!-- 右侧mainRightPositionThirdLineContent DIV 结束 -->
                                </div>
                                <!-- 右侧mainRightPostionThirdLine DIV 开始 -->
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <!-- 右侧mainRightPostionFourthLine DIV 开始 -->
                                <div id="mainRightPostionFouthLine">
                                    <!-- 右侧mainRightPositionThirdLineContent DIV 结束 -->
                                    <div id="mainRightPositionFourthLineContent">
                                        <form action="" method="get">
                                            <input type="text" name="textfield" id="textfield1" />
                                            <a href="#"><img src="~/Images/search.gif" alt="" width="27" height="25" align="middle" title="" border="0" /></a>
                                        </form>
                                        <a href="#" onclick="" class="a1">
                                            <font class="style4">热门话题</font>
                                            <img src="~/Images/ThirdLineUpArrow.gif" alt="" width="12" height="14" align="right" title="" border="0" />
                                        </a>
                                        <ul id="ul2" style="line-height:25px;">
                                            <a href="#" class="a1"><li><font class="style2">动车(49585)</font></li></a>
                                            <a href="#" class="a1"><li><font class="style2">高铁(48704)</font></li></a>
                                            <a href="#" class="a1"><li><font class="style2">遇难者(10616)</font></li></a>
                                            <a href="#" class="a1"><li><font class="style2">发言人(12875)</font></li></a>
                                            <a href="#" class="a1"><li><font class="style2">铁道部(24488)</font></li></a>
                                            <a href="#" class="a1"><li><font class="style2">暴雨(8914)</font></li></a>
                                            <a href="#" class="a1"><li><font class="style2">伊伊(921</font>)</li></a>
                                            <a href="#" class="a1"><li><font class="style2">变形金刚(2908)</font></li></a>
                                            <a href="#" class="a1"><li><font class="style2">味千拉面(450)</font></li></a>
                                            <a href="#" class="a1"><li><font class="style2">第三届网络原创歌曲大赛(27)</font></li></a>
                                        </ul>
                                    </div>
                                    <!-- 右侧mainRightPositionThirdLineContent DIV 结束 -->
                                </div>
                                <!-- 右侧mainRightPostionFoutrhLine DIV 结束 -->
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <!-- 右侧mainRightPostionFifthLine DIV 开始 -->
                                <div id="mainRightPostionFifthLine">
                                    <div id="mainRightPositionFifthLineContent">
                                        <a href="#" onclick="" class="a1">
                                            <font class="style4">我关注的话题</font>
                                            <img src="~/Images/ThirdLineUpArrow.gif" alt="" width="12" height="14" align="right" title="" border="0" />
                                        </a>
                                    </div>
                                </div>
                                <!-- 右侧mainRightPostionFifthLine DIV 结束 -->
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <!-- 右侧mainRightPostionSixthLine DIV 开始 -->
                                <div id="mainRightPostionSixthLine">
                                    <div id="mainRightPositionSixthLineContent">
                                        <a href="#" onclick="" class="a1">
                                            <font class="style4">我关注的</font>
                                            <img src="images/ThirdLineUpArrow.gif" alt="" width="12" height="14" align="right" title="" border="0" />
                                        </a>
                                    </div>
                                    <ul>
                                        @foreach (var item4 in ViewBag.Follow)
                                        {
                                            <a href="#" class="a1">
                                                <li>
                                                    <label id="FUid" style="display:none">@item4.U_ID</label>
                                                    <img style="width:48px;height:48px;" src="~/Images/@item4.UserInfo_Image" border="0" /><br />
                                                    <label class="style2" a id="temp1" tabindex="0" role="button" data-toggle="popover" title="">@item4.U_Nick</label>
                                                </li>
                                            </a>

                                        }
                                    </ul>
                                </div>
                                <!-- 右侧mainRightPostionSixthLine DIV 结束 -->
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <!-- 右侧mainRightPostionSeventhLine DIV 开始 -->
                                <div id="mainRightPostionSeventhLine">
                                    <div id="mainRightPositionSevenLineContent">
                                        灵步微博的成长，离不开你们。<br />
                                        <font class="style2">
                                            <a href="#" class="a1">有意见要提（点击） </a><br /><br />
                                            <a href="#" class="a1" onclick="set()">不良信息举报中心</a>
                                        </font>
                                    </div>
                                </div>
                                <!-- 右侧mainRightPostionSeventhLine DIV 结束 -->
                            </td>
                        </tr>
                    </table>
                </div>
                <!-- 右侧mainRightDiv 结束 -->
            </div>
            <!-- 回复DIV 开始 -->
            <!-- 内容总容器 mainDIV 结束-->
            <!-- footer部分 -->
            <div id="footer">
                <!-- footer网站链接部分 -->
                <div id="footerLink">
                    <ul>
                        <li><a href="#" class="a2">灵步网介绍</a></li>
                        <li><a href="#" class="a2">广告服务</a></li>
                        <li><a href="#" class="a2">API</a></li>
                        <li><a href="#" class="a2">诚征英才</a></li>
                        <li><a href="#" class="a2">保护隐私权</a></li>
                        <li><a href="#" class="a2">免责条款</a></li>
                        <li><a href="#" class="a2">法律顾问</a></li>
                        <li><a href="#" class="a2">意见反馈</a></li>
                    </ul>
                </div>
                <!-- footer网站链接部分结束 -->
                <!-- footer网站版权信息 -->
                <div id="footerCopy">
                    Copyright&copy;2011-2012 灵步小组 版权所有
                </div>
                <!-- footer网站版权信息结束 -->
            </div>
            <!-- footer部分结束 -->

        </div>
        <!--总容器 container结束-->
        <p id="backtop"><a id="backtop1" href="#totop"><span></span>回到顶部</a></p>
</body>